﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/**
 * 虽然是已过时的东西，但是如果是QQ应用客户，我们无法找到用户的邮箱，所以还是只能通过短消息来和用户进行沟通
 * 
 * */
namespace CMSModel
{
    /// <summary>
    /// 短消息
    /// </summary>
    public class Message
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 接收者ID
        /// </summary>
        public int ReceiverId { get; set; }
        /// <summary>
        /// 接收者
        /// </summary>
        public virtual User Receiver { get; set; }
        /// <summary>
        /// 发送者ID
        /// </summary>
        public int SenderId { get; set; }
        /// <summary>
        /// 发送者
        /// </summary>
        public virtual User Sender { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime Pdate { get; set; }
        /// <summary>
        /// 发送内容
        /// </summary>
        public string Content { get; set; }

        public Message()
        {
            this.Id = int.MinValue;
            this.ReceiverId = int.MinValue;
            this.SenderId = int.MinValue;
        }
    }
}
